home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
SetRecLmt.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
67 lines
Tcl_SetRecursionLimit(3T)cl Library Procedures 7.0
_________________________________________________________________
NAME
Tcl_SetRecursionLimit - set maximum allowable nesting depth
in interpreter
SYNOPSIS
#include <tcl.h>
int
Tcl_SetRecursionLimit(_i_n_t_e_r_p, _d_e_p_t_h)
ARGUMENTS
Tcl_Interp *_i_n_t_e_r_p (in) Interpreter whose recursion
limit is to be set. Must
be greater than zero.
int _d_e_p_t_h (in) New limit for nested calls
to Tcl_Eval for _i_n_t_e_r_p.
_________________________________________________________________
DESCRIPTION
At any given time Tcl enforces a limit on the number of
recursive calls that may be active for Tcl_Eval and related
procedures such as Tcl_GlobalEval. Any call to Tcl_Eval
that exceeds this depth is aborted with an error. By
default the recursion limit is 1000.
Tcl_SetRecursionLimit may be used to change the maximum
allowable nesting depth for an interpreter. The _d_e_p_t_h argu-
ment specifies a new limit for _i_n_t_e_r_p, and
Tcl_SetRecursionLimit returns the old limit. To read out
the old limit without modifying it, invoke
Tcl_SetRecursionDepth with _d_e_p_t_h equal to 0.
KEYWORDS
nesting depth, recursion
Tcl 1